@extends('admin.app')

@section('breadcrumb')
<div class="bg-light lter b-b wrapper-md">
  <ol class="breadcrumb bg-light lter m-n no-padder">
    <li><a href="{{ admin_action('HomeController@index') }}">主页</a></li>
    <li>网站管理</li>
    <li><a href="{{ admin_action('Web\ArticlesController@index') }}">文章管理</a></li>
    <li class="active">{{ $article->title }}</li>
  </ol>
</div>
@endsection

@section('content')
  <div class="panel panel-default">
    <div class="panel-heading font-bold">
      导航信息
    </div>
    <div class="panel-body">
      <form class="form-horizontal">

        <div class="form-group">
          <label class="col-sm-2 text-right">名称*:</label>
          <div class="col-sm-7">
            {{$article->title}}
          </div>
        </div>

        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-sm-2 text-right">封面图:</label>
          <div class="col-sm-7">
            @if($article->image)
              <div class="file-preview-frame file-preview-initial" id="preview-1453704120199-init_0"
                   data-fileindex="init_0">
                <img src="{{asset($article->image)}}" width="500">
              </div>
            @else
              无
            @endif
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          {!! $article->content !!}
        </div>


        <div class="form-group">
          <div class="col-lg-4 col-lg-offset-2">
            <a href="javascript:history.back()" class="btn btn-default">返&nbsp;回</a>
          </div>
        </div>
      </form>
    </div>
  </div>
@endsection